<section id="cEnd" class="ml-24 mr-24">
  <hl-page-header title="信息发布">
    <hl-button v-if="quanxian.indexOf('c190') > -1" @on-click="createInfo" type="outline">新建信息</hl-button>
  </hl-page-header>

  <!-- 搜索部分 -->
  <div class="clearfix mt-15 search-container-house border-b pb-10">
    <div class="clearfix">
      <div class="pull-left">
        <p class="color-cfcfcf font-12">信息检索</p>
        <div class="search-text">
          <span class="icon-Gm-search"></span>
          <input type="text" class="" v-model="keyword" placeholder="发布标题" />
        </div>
      </div>
      <div class="pull-left ml-24">
        <p class="color-cfcfcf font-12">创建时间</p>
        <div class="clearfix">
          <div class="calendar-text pull-left">
            <web-calendar v-model="beginTime" tips="起始时间"></web-calendar>
          </div>
          <div class="pull-left line-height-34 color-999 plr-12">-</div>
          <div class="calendar-text pull-left">
            <web-calendar v-model="endTime" tips="截止时间"></web-calendar>
          </div>
        </div>
      </div>

      <div class="pull-left ml-24" v-if="flag">
        <p class="color-cfcfcf font-12">发布模块</p>
        <hl-select :data="modulesList" v-model="moduleId" width="140" @on-change="eventModule"></hl-select>
      </div>

      <div class="pull-left" style="marginTop:16px;marginLeft:20px;" >
        <hl-button @on-click="getListData0" size="mini">查询</hl-button>
        <hl-button @on-click="reset" size="mini">重置</hl-button>
      </div>
    </div>

    <div class="clearfix" v-if="flag">
      <div class="pull-left mt-10">
        <p class="color-cfcfcf font-12">发布类型</p>
        <hl-select :data="typelist" v-model="typeStatus" width="140" @on-change="eventType"></hl-select>
      </div>
      <div class="pull-left mt-10 ml-24">
        <p class="color-cfcfcf font-12">可参与性</p>
        <hl-select :data="isValidateLt" v-model="isValidate" width="140" @on-change="isValidateSel"></hl-select>
      </div>
      <div class="pull-left" style="marginTop:26px;marginLeft:20px;" >
        <hl-button @on-click="getListData0" size="mini">查询</hl-button>
        <hl-button @on-click="reset" size="mini">重置</hl-button>
      </div>
    </div>





    <!-- <div class="show-hide-term cursor" @click="showHideTerm">
      <span class="icon-turn-right" :style="{'transform': flag ? 'translate( -5px, 0) rotate(-90deg)' : 'translate( -5px, 0) rotate(90deg)'}"></span>
      <span v-if="flag">收起</span><span v-if="!flag">展开</span>
    </div> -->

    <div class="global_open_sign" @click="showHideTerm">
      <span v-if="flag">收起筛选项</span>
      <span v-if="!flag">更多筛选项</span>
    </div>

  </div>

  <!-- 主体列表 -->
  <div class="house-sharing-list clearfix">
    <div class="house-left">
      <div class="house-scroll">
        <div class="house-title">
          <div class="dy-flex">
            <div class="dy-fx-1">序</div>
            <div class="dy-fx-2">发布模块</div>
            <div class="dy-fx-2">发布类型</div>
            <div class="dy-fx-2">文章标题</div>
            <div class="dy-fx-4 cursor" @click="createTime">参与时间
              <span :class="{'icon-Gm-sort-default': orders == '#' || columns == 'UT', 'icon-Gm-sort-ascending': orders == 'ASC' && columns == 'CT', 'icon-Gm-sort-descending': orders == 'DESC' && columns == 'CT'}">
                <span class="path1"></span><span class="path2"></span>
              </span>
            </div>
            <div class="dy-fx-3 cursor" @click="updateTime">更新时间
              <span :class="{'icon-Gm-sort-default': (orders == '#') || columns == 'CT', 'icon-Gm-sort-ascending': orders == 'ASC' && columns == 'UT', 'icon-Gm-sort-descending': orders == 'DESC' && columns == 'UT'}">
                <span class="path1"></span><span class="path2"></span>
              </span>
            </div>
            <div class="dy-fx-2">状态</div>
          </div>
        </div>
        <div class="dy-flex color-666 house-two-tone" v-for="(item, index) in data.publishings" @mouseenter="addbgcolor(index)" @mouseleave="removebgcolor(index)">
          <div class="dy-fx-1">{{ index+1 }}</div>
          <div class="dy-fx-2 ellipsis-1">{{ item.moduleName }}</div>
          <div class="dy-fx-2">{{ item.publishingTypeVal || '--' }}</div>
          <div class="dy-fx-2 ellipsis-1">{{ item.title }}</div>
          <div class="dy-fx-4">{{ item.partakeTime || '--' }}</div>
          <div class="dy-fx-3">{{ item.updateTime | formatDate }}</div>
          <div class="dy-fx-2">{{ item.statusVal }}</div>
        </div>
      </div>
    </div>
    <div class="house-right">
      <div class="house-title">操作</div>
      <div class="house-operate" v-for="(item, index) in data.publishings" @mouseenter="addbgcolor(index)" @mouseleave="removebgcolor(index)">
        <a href="javascript:;" @click="putStatus(item.portalArticleId, item.status, item.publishingType)" v-if="quanxian.indexOf('c193') > -1">{{ item.status == 'Y' ? '停用' : '启用' }}</a>
        <a href="javascript:;" @click="previewDetail(item.portalArticleId)">预览</a>
        <a href="javascript:;" @click="editorPerview(item.portalArticleId, item.publishingType)" v-if="quanxian.indexOf('c191') > -1">编辑</a>
        <div class="relative inline hover-show">
            <a href="javascript:;">更多</a>
            <div class="absolute more-op hide">
              <a href="javascript:;" @click="delOne(item.portalArticleId)" v-if="quanxian.indexOf('c192') > -1">删除</a>
              <a href="javascript:;" @mouseenter="copyURL(item)" @click="copyss">复制URL</a>
            </div>
        </div>
      </div>
    </div>
  </div>

  <div class="user-page ptb-10 clearfix">
    <div class="pull-left user-page-num">
      <span class="font-14">共<i>{{data.totalCount}}</i>条记录</span>
      <span>每页
			<hl-select :data="pageCounts" v-model="limit" width="80" @on-change="eventPage"></hl-select>

      条</span>
    </div>
    <div class="pull-right">
      <ul class="page" id="page"></ul>
    </div>
  </div>
<input type="text" id="copyInput" style="opacity:0" readonly>
</section>

<script src="modules/workbench/scripts/cEnd.js" charset="utf-8"></script>

<style media="screen">

  .button-footer {
    display: flex;
  }
  .button-footer>div {
    flex: 1;
    height: 45px;
    line-height: 45px;
    text-align: center;
    color: #666;
    background:rgba(249,249,249,1);
  }
  .button-footer .save-erweima {
    background:rgba(68,73,135,1);
    color: #fff;
  }

  h4 {
    margin: 0;
  }
  .color-cfcfcf {
    color: #cfcfcf;
  }
  .search-container-house {
    position: relative;
  }
  .show-hide-term {
    width: 59px;
    height: 30px;
    line-height: 30px;
    color:rgba(244,174,71,1);
    margin-top: 5px;
    position: absolute;
    right: 0;
    bottom: 10px;
    background:rgba(244,174,71,0.3);
    border-radius:4px;
    text-align: right;
    padding-right: 5px;
  }
  .more-op {
		width: 116px;
		height: 80px;
		background: #fff;
		position: absolute;
		right: 40px;
		top: 50%;
		transform: translate(0, -50%);
		z-index: 9;
		filter: drop-shadow(0 0 4px rgba(0,0,0,.3));
		border-radius: 3px;
	}
	.hover-show:hover .more-op {
		display: block;
	}
	.more-op:before {
		content: '';
		position: absolute;
		right: -20px;
		top: 50%;
		transform: translate(0, -50%);
		width: 0;
		height: 0;
		border-width: 10px;
		border-style: solid;
		border-color: transparent transparent transparent #fff;
	}
	.more-op a {
		display: block;
		line-height: 40px;
		margin: 0 !important;
		color: #999;
	}
	.more-op a:hover {
		background:rgba(242,242,242,1);
		color: #476799;
	}
  .search-container-house .icon-turn-right {
    display: inline-block;
    transform: translate( -5px, 0) rotate(90deg);
  }
  .search-text {
    background:rgba(249,249,249,1);
    height: 34px;
    position:relative;
    width: 220px;
    border-radius: 4px;
  }
  .search-text span {
    position:absolute;
    left: 8px;
    top: 0;
    line-height: 34px;
  }
  .search-text input {
    width: 100%;
    height: 100%;
    background: none;
    border: 0;
    outline: medium;
    text-indent: 25px;
  }
  .calendar-text {
    background:rgba(249,249,249,1);
    width: 140px;
    height: 34px;
    border-radius: 4px;
  }
  .calendar-text .icon-Gm-calendar:before {
    top: 0;
    right: 0;
  }
  .calendar-text .hl-date-text {
    background: none;
    box-shadow: none;
    border: 0;
  }
  .house-sharing-text span {
    background:rgba(249,249,249,1);
    box-shadow: none;
    border: 0;
    color: #666;
  }
  input::-webkit-input-placeholder {
    color: #999;
  }
  input:-moz-placeholder {
    color: #999;
  }
  input:-ms-input-placeholder {
    color: #999;
  }
  .house-sharing-list {
    margin: 10px 0 0;
    /* overflow: hidden; */
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(235,235,235,1);
    display: flex;
  }
  .house-sharing-list .house-left {
    width: 796px;
    border-right: 1px solid rgba(235,235,235,1);
    line-height: 40px;
  }
  .house-sharing-list .house-right {
    width: 180px;
    line-height: 40px;
  }
  .house-title {
    background:rgba(240,242,255,1);
    color:rgba(165,170,183,1);
  }
  .house-operate {
    text-align: center;
    font-size: 0;
    height: 40px;
  }
  .house-operate a {
    font-size: 14px;
    margin: 0 3px;
  }
  .house-two-tone:nth-child(2n+1), .house-operate:nth-child(2n+1) {
    background:rgba(249,249,249,1);
  }
  .house-two-tone-hover {
    background:rgba(240,240,247,1) !important;
  }
</style>
